package com.ufcg.lvc.client.my;

import com.google.gwt.core.client.GWT;
import com.smartgwt.client.types.Cursor;
import com.smartgwt.client.types.DragAppearance;
import com.smartgwt.client.widgets.Img;

/**
 * Esta classe representa uma imagem que pode ser movida
 *  
 * @author Larissa Nepomuceno Costa
 * @version 1
 * @since 08/10/2012
 */
public class MyColorCanvas extends Img {

	public MyColorCanvas(String cor) {
		setSrc(GWT.getHostPageBaseURL()+"transp.png");
		setBackgroundColor(cor);
		setCursor(Cursor.MOVE);
		setCanDrag(true);
		setCanDrop(true);
		setDragAppearance(DragAppearance.NONE);
		setBorder("2px solid silver");
		setSize("67", "67");
	}
	
}